#include <stdio.h>

typedef struct three_num { int a[3]; } three_num_t;
size_t three_num(int *nums, size_t sz, three_num_t *tn, size_t tn_size);

int main()
{
	int nums[] = {-1, 0, 1, 2, -1, -4};

	three_num_t tn[5];
	size_t sz = three_num(nums, sizeof(nums) / sizeof(int), tn, 5); 

	for (int i = 0; i < sz; i++) {
		three_num_t *t = &tn[i];
		printf("%d %d %d\n", t->a[0], t->a[1], t->a[2]);
	}
}
